package org.springframework.samples.mvc.basic.tipPartner;

import org.springframework.samples.mvc.basic.business.Transformer;

import com.proba.annotations.pojo.TipPartner;

public class TipPartnerTransformer implements
		Transformer<TipPartner, TipPartnerView> {

	@Override
	public TipPartnerView transform(TipPartner entity) {
		TipPartnerView view = new TipPartnerView();
		view.setId(entity.getId());
		view.setTipPartner(entity.getTipPartner());
		return view;
	}

	@Override
	public TipPartner transform(TipPartnerView view) {
		TipPartner entity = new TipPartner();
		entity.setId(view.getId());
		entity.setTipPartner(view.getTipPartner());
		return entity;
	}

}
